package com.tdkj.model.shop;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import com.tdkj.model.base.BaseEntity;

/**
 * 
 */
@Entity
@Table(name = "shop_good_logistics_info")
public class BeanGoodLogisticsInfo extends BaseEntity {

	//省
	private String province;
	
	//市
	private String city;
	
	// 运费类型 {0:卖家承担运费 1:买家承担运费}
	private Integer type;
	// 平邮
	private double surfacePrice;
	// 快递
	private double expressPrice;
	// EMS
	private double emsPrice;
	
	private BeanGood good;

	/**
	 * @return the province
	 */
	public String getProvince() {
		return province;
	}

	/**
	 * @param province the province to set
	 */
	public void setProvince(String province) {
		this.province = province;
	}

	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * @return the type
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * @return the surfacePrice
	 */
	public double getSurfacePrice() {
		return surfacePrice;
	}

	/**
	 * @param surfacePrice the surfacePrice to set
	 */
	public void setSurfacePrice(double surfacePrice) {
		this.surfacePrice = surfacePrice;
	}

	/**
	 * @return the expressPrice
	 */
	public double getExpressPrice() {
		return expressPrice;
	}

	/**
	 * @param expressPrice the expressPrice to set
	 */
	public void setExpressPrice(double expressPrice) {
		this.expressPrice = expressPrice;
	}

	/**
	 * @return the emsPrice
	 */
	public double getEmsPrice() {
		return emsPrice;
	}

	/**
	 * @param emsPrice the emsPrice to set
	 */
	public void setEmsPrice(double emsPrice) {
		this.emsPrice = emsPrice;
	}

	/**
	 * @return the good
	 */
	@OneToOne(fetch=FetchType.LAZY, mappedBy="logisticsInfo")
	public BeanGood getGood() {
		return good;
	}

	/**
	 * @param good the good to set
	 */
	public void setGood(BeanGood good) {
		this.good = good;
	}
	

	
	

}